package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 知识库可见权限配置对象 sys_role_classes
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
public class SysRoleClasses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限id */
    private Long roleId;

    /** 知识库id */
    private Long classesId;

    /** role:角色，user:用户，post:岗位，dept:部门 */
    private String type;

    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setClassesId(Long classesId) 
    {
        this.classesId = classesId;
    }

    public Long getClassesId() 
    {
        return classesId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roleId", getRoleId())
            .append("classesId", getClassesId())
            .append("type", getType())
            .toString();
    }
}
